from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'CDAG.views.home', name='home'),
    # url(r'^CDAG/', include('CDAG.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    
    # URL principal
    url(r'^$', include('core.urls')),
    
    # Autenticacion
    url(r'^login/$', 'django.contrib.auth.views.login', {'template_name':'auth/login.html'}),
    url(r'^login_exitoso/', 'core.views.logged_in_success'),
    url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page':'/logout_exitoso'}),
    url(r'^logout_exitoso/', 'core.views.logged_out_success'),
    url(r'^cambiar_contrasena/$', 'django.contrib.auth.views.password_change', {'template_name':'auth/cambiar_contrasena.html'}),
    url(r'^contrasena_cambiada/$', 'django.contrib.auth.views.password_change_done', {'template_name':'auth/contrasena_cambiada.html'}),

    # URLs de aplicaciones
    url(r'^atletas/', include('atletas.urls')),
    url(r'^eventos/', include('eventos.urls')),
    url(r'^deportes/', include('deportes.urls')),
    url(r'^entrenadores/', include('entrenadores.urls')),
    url(r'^contacto/$', 'core.views.contacto'),
	url(r'^index/$', 'core.views.index'),
	url(r'^principal/$', 'core.views.principal'),
	url(r'^informacion/$', 'core.views.informacion'),
	
)
